package com.slz3.business.module.financeManagement.finReconciliationManage.steward;

import com.slz3.business.frame.response.RR;
import com.slz3.business.frame.response.ResInfo;
import com.slz3.business.module.financeManagement.finReconciliationManage.domain.FinReconciliationManage;
import com.slz3.business.module.financeManagement.finReconciliationManage.domain.FinReconciliationManageCondition;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

public class FinReconciliationManageResAtomic extends FinReconciliationManageResExecutor {

    public Mono<ServerResponse> add_$FinReconciliationManageUpdateLock(ServerRequest req, FinReconciliationManage finReconciliationManage) {
        return FinReconciliationManageResSafeValid.add(req, finReconciliationManage) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.add(req, finReconciliationManage);
    }

    public Mono<ServerResponse> delete_$FinReconciliationManageUpdateLock(ServerRequest req, FinReconciliationManageCondition finReconciliationManageCondition) {
        return FinReconciliationManageResSafeValid.delete(req, finReconciliationManageCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.delete(req);
    }

    public Mono<ServerResponse> modify_$FinReconciliationManageUpdateLock(ServerRequest req, FinReconciliationManage finReconciliationManage) {
        return FinReconciliationManageResSafeValid.modify(req, finReconciliationManage) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.modify(req, finReconciliationManage);
    }

    public Mono<ServerResponse> info_$FinReconciliationManageUpdateLock(ServerRequest req) {
        return FinReconciliationManageResSafeValid.info(req) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.info(req);
    }

    public Mono<ServerResponse> auditSubmit_$FinReconciliationManageUpdateLock(ServerRequest req, FinReconciliationManageCondition finReconciliationManageCondition) {
        return FinReconciliationManageResSafeValid.auditSubmit(req, finReconciliationManageCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditSubmit(req);
    }

    public Mono<ServerResponse> audit_$FinReconciliationManageUpdateLock(ServerRequest req, FinReconciliationManageCondition finReconciliationManageCondition) {
        return FinReconciliationManageResSafeValid.audit(req, finReconciliationManageCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.audit(req);
    }

    public Mono<ServerResponse> auditReject_$FinReconciliationManageUpdateLock(ServerRequest req, FinReconciliationManageCondition finReconciliationManageCondition) {
        return FinReconciliationManageResSafeValid.auditReject(req, finReconciliationManageCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditReject(req);
    }


    public Mono<ServerResponse> usingEnable_$FinReconciliationManageUpdateLock(ServerRequest req, FinReconciliationManageCondition finReconciliationManageCondition) {
        return FinReconciliationManageResSafeValid.usingEnable(req, finReconciliationManageCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingEnable(req);
    }

    public Mono<ServerResponse> usingDisable_$FinReconciliationManageUpdateLock(ServerRequest req, FinReconciliationManageCondition finReconciliationManageCondition) {
        return FinReconciliationManageResSafeValid.usingDisable(req, finReconciliationManageCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingDisable(req);
    }
}
